package com.hl.service;

import com.hl.mapper.FmMapper;
import com.hl.pojo.Fm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FmServiceImpl implements FmService {
    @Autowired
    private FmMapper fmMapper;

    @Override
    public Integer add(Fm fm) {
        return fmMapper.add(fm);
    }

    @Override
    public Integer deleteLogicalById(Integer id) {
        return fmMapper.deleteLogicalById(id);
    }

    @Override
    public List<Fm> findAll() {
        return fmMapper.findAll();
    }

    @Override
    public Fm findById(Integer id) {
        return fmMapper.findById(id);
    }

    @Override
    public Integer update(Fm fm) {
        return fmMapper.update(fm);
    }

    @Override
    public List<Fm> findByTitle(String title) {
        return fmMapper.findByTitle(title);
    }
}
